package com.nd.controller.admin;

import com.nd.pojo.bo.RoleBO;
import com.nd.pojo.bo.StorageListBO;
import com.nd.pojo.vo.ErrorAndErrno;
import com.nd.service.LogService;
import com.nd.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2mall
 * @description: 对象存储控制器
 * @author: shit_code_builder
 * @create: 2021-06-06 09:42
 **/
@RestController
@RequestMapping("admin")
public class OSSController {

    @Autowired
    StorageService storageService;
    @Autowired
    LogService logService;


    @GetMapping("/storage/list")
    public ErrorAndErrno storageList(StorageListBO storageListBO){

    ErrorAndErrno errorAndErrno = storageService.slectStorageList(storageListBO);

    return errorAndErrno;
    }

    @GetMapping("/log/list")
    public ErrorAndErrno logList(RoleBO bo){
        ErrorAndErrno errorAndErrno=logService.selectListLog(bo);



    return errorAndErrno;
    }

}
